//
//  ServiceHelper.h
//  BSValue2
//
//  Created by Rainbow on 12/21/10.
//  Copyright 2010 iTotemStudio. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASIFormDataRequest.h"

typedef enum
{
    HotWordRequestTypeGetWords = 0,
    HotWordRequestTypeGetAdvertising,
    HotWordRequestTypeRegister,
    HotWordRequestTypeLogin,
    HotWordRequestTypeUpdateInfo,
    HotWordRequestTypeUpdateGeo,
    HotWordRequestTypeUploadPic,
    HotWordRequestTypeListUser,
    HotWordRequestTypeSendMsg,
    HotWordRequestTypeReceiveMsg,
    HotWordRequestTypeGetUserInfo,
    HotWordRequestTypeUploadToken,
    HotWordRequestTypeCheckUpdate,
    HotWordRequestTypeListSchool,
    HotWordRequestTypeListUserBySchool,
    HotWordRequestTypeResetNews,
    HotWordRequestTypeCheckLetterUpdate,
    HotWordRequestTypeGetSATAdvertising,
    HotWordRequestTypeUpdateFilter,
    HotWordRequestTypeListUserByDreamSchool,
    HotWordRequestTypeListUserByTeacher,
    HotWordRequestTypeListUserByExam,
    HotWordRequestTypeListUserByStudyHall,
    HotWordRequestTypeListUserByGreMajor,
    HotWordRequestTypeGetQuestionTags,
    HotWordRequestTypeGetQuestion,
    HotWordRequestTypeAddQuestion,
    HotWordRequestTypeGetUserQuestion,
}HotWordRequestType;

@interface ServiceHelper : NSObject {
	NSMutableDictionary *CallBacks;
}

+ (ServiceHelper *)sharedService;
- (void) restore;
- (NSString *)getTimeStamp;
- (BOOL)checkNetwork:(NSString *)errorMessage;
- (ASIFormDataRequest *)requestServerForMethod:(HotWordRequestType)methodType WithParameters:(NSDictionary *)parameters AndCallBackScope:(id)callBackDelegate AndSuccessSel:(NSString *)successSelector AndFailedSel:(NSString *)failedSelector;
@end
